﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Text;
using iMES.Entity.SystemModels;

namespace iMES.Entity.DomainModels
{
    [Entity(TableCnName = "采购申请", TableName = "ProcurementRequest")]
    /// <summary>
    /// 采购申请实体类
    /// </summary>
    public partial class ProcurementRequest : SysEntity
    {
        /// <summary>
        ///采购申请主键
        /// </summary>
        [Key]
        [Display(Name = "采购申请主键")]
        [Column(TypeName = "uniqueidentifier")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public Guid ProcurementRequestId { get; set; }
        /// <summary>
        ///采购编号
        /// </summary>
        [Display(Name = "采购编号")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string ProcurementRequestBh { get; set; }
        /// <summary>
        ///采购原料编号
        /// </summary>
        [Display(Name = "采购原料编号")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string ProcurementRequestYlBh { get; set; }
        /// <summary>
        ///采购原料名称
        /// </summary>
        [Display(Name = "采购原料名称")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string ProcurementRequestYlName { get; set; }
        /// <summary>
        ///采购原料数量
        /// </summary>
        [Display(Name = "采购原料数量")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string ProcurementRequestYlNum { get; set; }
        /// <summary>
        ///采购原料型号
        /// </summary>
        [Display(Name = "采购原料型号")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string ProcurementRequestYlXinghao { get; set; }
        /// <summary>
        ///采购原料尺寸
        /// </summary>
        [Display(Name = "采购原料尺寸")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string ProcurementRequestYlSize { get; set; }
        /// <summary>
        ///申请时间
        /// </summary>
        [Display(Name = "申请时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? ProcurementRequestYlCreateDate { get; set; }
        /// <summary>
        ///采购预算
        /// </summary>
        [Display(Name = "采购预算")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string RawmProcurementRequestYlYusuan { get; set; }
        /// <summary>
        ///采购批次号
        /// </summary>
        [Display(Name = "采购批次号")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string RawmProcurementRequestYlPc { get; set; }

    }
}
